<?php /* @var $info TempFileInfo */ ?>
<div style="float:left;">
<?php foreach( Files::getPhotoDirs() as $dir =>$ar ): ?>
    <b><?php echo __('Directory name:')?> &nbsp;<?php echo $dir; ?></b><br/>
<?php if(file_exists('images/gallery/' .$dir. '/' . $info->getFileName())): ?>
    <?php echo __('Croped file:')?> &nbsp;
    <?php echo image_tag('/images/gallery/' .$dir. '/' . $info->getFileName());?><br/>
<?php else: ?>
    <?php echo  __('File will be croped default.');?><br/>
<?php endif; ?>
<?php endforeach; ?><br/>
<b><?php echo $echo; ?></b>

<?php echo button_to(ucfirst(__('back'))
                    , 'gallery/crop?state='.($state-1)
                    , array('class' => ''))?>
<?php echo button_to(__('Cancel file upload')
                    , 'gallery/cancelCrop'
                    , array('class' => ''));?>
<?php echo button_to(__('Save')
                    , 'gallery/saveCrop'
                    , array('class' => ''))?>
</div>
